package com.itrip.service;

import com.itrip.dto.OrderListDTO;
import com.itrip.dto.OrderPayDTO;
import com.itrip.pojo.ItripHotelOrder;
import com.itrip.vo.order.OrderCountVO;
import com.itrip.vo.order.OrderListVO;

import java.util.List;

public interface OrderService {
    int addOrder(ItripHotelOrder order);


    int getCountByUser(Long userId);



    OrderPayDTO getOrderPayByUser(Long userId);

    List<OrderListDTO> getOrderListByParams(OrderListVO orderListVO, Long userId, int start);

    int getOrderCountByParams(OrderCountVO orderCountVO, Long userId);

    int getOrderStatus(long orderId);

    int updateOrderStatusInvalid(long orderId);

    int deleteOrderById(Long id);
}
